//Download by http://www.NewXing.com
// MemDC.h: interface for the CMemDC class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MEMDC_H__29276D61_113C_11D9_95EE_00E04CB2B956__INCLUDED_)
#define AFX_MEMDC_H__29276D61_113C_11D9_95EE_00E04CB2B956__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CMemDC : public CDC  
{
public:
	CMemDC(CDC *pDC);
	virtual ~CMemDC();
private:
	CBitmap m_bitmap;
	CBitmap *m_pOldBitmap;
	CDC     *m_pDC;
	CRect   m_rect;
	BOOL    m_bMemDC;
public:
	CMemDC* operator->() {return this;};
	operator CMemDC*() {return this;};

};

#endif // !defined(AFX_MEMDC_H__29276D61_113C_11D9_95EE_00E04CB2B956__INCLUDED_)
